<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<style type="text/css">
    .goodsTable{
        margin: 30px 0 0 30px;
    }
    .goodsTable table{
        width: 90vw;
        height: auto;
        border: 1px solid;
        font-size: 20px;
        text-align: center;
    }
    .goodsTable td{
        border-bottom: 1px solid;
        border-left: 1px solid;
        height: 50px;
    }
    .goodsTable td:first-child{
        border-left: none;
    }
    .goodsTable table tr:last-child{
        border-bottom: none;
    }
    .boxState{
        margin-left: 10vw;
        font-size: 20px;
    }
</style>
<body>
    <h1><div class="boxName">${requestScope.goodsList[0].box.boxName} 武器箱</div></h1>
    <div class="boxState">
        <b>箱子当前状态</b>
        <c:if test="${ not empty requestScope.goodsList[0].box.state}">
            下架
        </c:if>
        <c:if test="${ empty requestScope.goodsList[0].box.state}">
            可开启
        </c:if>
    </div>
    <div class="box">
        <div class="goodsList">
            <div class="goodsTable">
                <table>
                    <tr>
                        <td>序号</td>
                        <td>涂装</td>
                        <td>品质</td>
                        <td>类别</td>
                        <td>类型</td>
                        <td>名称</td>
                        <td width="300px">描述</td>
                    </tr>
                    <c:forEach items="${requestScope.goodsList}" var="g" varStatus="s">
                        <tr>
                            <td>${s.count}</td>
                            <td>${g.coating}</td>
                            <td>${g.category}</td>
                            <td>${g.quality}</td>
                            <td>${g.goodsType.typeName}</td>
                            <td>${g.goodsType.name}</td>
                            <td>${g.description}</td>
                        </tr>
                    </c:forEach>

                </table>
            </div>

        </div>
    </div>
</body>
</html>
